from math import radians

from numpy import square
from manimlib import *

class Test(Scene):
    #75cfb8
    #bbdfc8
    #f0e5d8
    #ffc478
    def construct(self):
        # self.add(NumberPlane())
        l=Square(side_length=5).stretch(6/5,0).shift(LEFT*2.5)
        r=Square(side_length=5).stretch(5/5,0).shift(RIGHT*2).rotate(PI/4)
        bl=Brace(l,UP)
        bll=Brace(l,LEFT)
        br=Brace(r,UR)
        brr=Brace(r,DR)
        tl=Tex('6m').next_to(bl,UP)
        tll=Tex('5m').next_to(bll,LEFT)
        tr=Tex('5m').next_to(br,UR,buff=-1.5)
        trr=Tex('5m').next_to(brr,DR,buff=-1.5)
        self.add(l,r,bl,br,tl,tr,brr,bll,tll,trr)
        s1=Tex('S_1m^2').next_to(r,LEFT).shift(LEFT)
        s2=Tex('S_2m^2').next_to(l,RIGHT).shift(RIGHT)

        s=Tex('Sm^2').shift(LEFT*0.5)
        ss=Polygon([-1.5,0,0],[0.5,-2,0],[0.5,2,0]).set_fill('#75cfb8',1)
        self.add(ss,s,s1,s2)
        self.wait()
